package com.gwcm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gwcm.model.dto.orderInfo.OrderInfoQueryRequest;
import com.gwcm.model.dto.orderInfo.PosSaleOrderQueryRequest;
import com.gwcm.model.entity.OrderInfo;
import com.gwcm.model.entity.Sale;
import com.gwcm.model.vo.OrderInfoVo;
import com.gwcm.model.vo.PosSaleOrderVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 15375
* @description 针对表【order_info】的数据库操作Mapper
* @createDate 2023-03-11 15:41:21
* @Entity com.gwcm.model.entity.OrderInfo
*/
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    IPage<OrderInfoVo> selectOrderInfoToPage(IPage<OrderInfo> page,@Param("orderInfoQueryRequest") OrderInfoQueryRequest orderInfoQueryRequest);
    /**
     * 分页查询收银销售订单
     * @param page
     * @param posSaleOrderQueryRequest
     * @return
     */
    IPage<PosSaleOrderVo> selectPosSaleOrderToPage(IPage<Sale> page, @Param("posSaleOrderQueryRequest") PosSaleOrderQueryRequest posSaleOrderQueryRequest);
}




